package com.hellobike.haxing.modules.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hellobike.haxing.modules.product.entity.Sku;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Description: SKU
 * @Author: haxing-boot
 * @Date:   2020-01-10
 * @Version: V1.0
 */
public interface SkuMapper extends BaseMapper<Sku> {
    @Select(" select id,spu_id,dimension_values,barcode,deleted from t_sku where id = #{id} ")
    Sku selectAllSkuStatus(@Param("id") Long id);

    @Select(" select * from t_sku where id = #{id} ")
    Sku getByIdForReal(@Param("id")Long id);
}
